#ifndef COIN_H
#define COIN_H

#include <QWidget>
#include "stdfax.h"

class Coin : public QPushButton
{
    Q_OBJECT
public:
    explicit Coin(QWidget *parent = nullptr);
    Coin(int);
    int n;
    bool Flipable = true; //控制能否点击
    void flip();
    virtual void mousePressEvent(QMouseEvent * e);

private:

    QTimer * timer;
    int max=8;
    int min=1;
    bool isAnimation=false;
    QPixmap pic;
    QString path;

signals:

};

#endif // COIN_H
